DefaultDescriptorWrapper

class DefaultDescriptorWrapper(descriptor: CBDescriptor, val characteristic: RemoteCharacteristicWrapper) : RemoteDescriptorWrapper

Default implementation of RemoteDescriptorWrapper

Parameters

descriptor

the CBDescriptor to wrap

Constructors

Link copied to clipboard
constructor(descriptor: CBDescriptor, characteristic: RemoteCharacteristicWrapper)

Properties

Link copied to clipboard
Link copied to clipboard
open override val uuid: CBUUID

The UUID of the descriptor

Functions

Link copied to clipboard
open override fun readValue(peripheral: CBPeripheral)

Request a CBPeripheral to read the descriptor

Link copied to clipboard
open override fun writeValue(value: NSData, peripheral: CBPeripheral)

Request a CBPeripheral to write value to the descriptor